using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RiceShop.Models
{
    /// <summary>
    /// 品牌实体类
    /// </summary>
    [Table("Brand")]
    public class Brand
    {
        /// <summary>
        /// 品牌ID
        /// </summary>
        [Key]
        [Column("id")]
        public long Id { get; set; }

        /// <summary>
        /// 品牌名称
        /// </summary>
        [Column("name")]
        [StringLength(50)]
        public string? Name { get; set; }

        /// <summary>
        /// 品牌Logo
        /// </summary>
        [Column("logo")]
        [StringLength(255)]
        public string? Logo { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        [Column("sort")]
        public int? Sort { get; set; }

        /// <summary>
        /// 是否显示
        /// </summary>
        [Column("isShow")]
        public bool? IsShow { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [Column("isDeleted")]
        public bool? IsDeleted { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("createTime")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [Column("updateTime")]
        public DateTime? UpdateTime { get; set; }
    }
}
